package com.zbf.tupianyasuo;

import net.coobird.thumbnailator.Thumbnails;
import net.coobird.thumbnailator.util.ThumbnailatorUtils;

import java.io.File;
import java.io.IOException;

/**
 * @author: LCG
 * @Date: 2021-11-26 16:24:05
 * @description:
 **/
public class TupianYasuoTest {
    public static void main(String[] args) throws IOException {

        File file=new File("C:\\Users\\lenovo\\Desktop\\5555.gif");
        Thumbnails.of("C:\\Users\\lenovo\\Desktop\\d9e56debe12ad26bde7375c14ab6822760f8e4ef60ba5_").outputFormat("jpeg").scale(0.5).outputQuality(0.5).toFile(file);

       //处理富文本编辑器中的图片
        

    }
}
